import React from 'react';

export default function Label (props) {
    let value = props.value;
    if (props.format) {
        value = props.format(value);
    }
    let empty = value === '' || value === null || value === undefined;
return <label htmlFor={props.for} style={props.style} className={props.className}>{empty ? <span>&nbsp;</span> : [value, props.children]}</label>
};